<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020\7\10 0010
  Time: 16:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        int a=10;
        if(a>=10){
            out.print("a>=10");
        }else{
            out.print("a<=10");
        }
    %>
<hr>
    <c:if test="${age >= 18}" var="a" scope="application">
        <h1>已成年</h1>
    </c:if>
    ${a}
    <hr>
    <c:choose>
        <c:when test="${age<14}">童年</c:when>
        <c:when test="${age<18}">少年</c:when>
        <c:when test="${age<35}">青年</c:when>
        <c:otherwise >壮年</c:otherwise>
    </c:choose>

</body>
</html>
